//
//  TL_UserInfoModel.h
//  WXReader
//
//  Created by LL on 2020/12/2.
//  Copyright © 2020 Andrew. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TLSocialLoginModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface TL_UserInfoModel : NSObject<NSCopying, NSMutableCopying>

@property (nonatomic, copy) NSString *token;

@property (nonatomic, assign) NSInteger uid;

@property (nonatomic, copy) NSString *nickname;

@property (nonatomic, copy) NSString *mobile;

@property (nonatomic, copy) NSString *avatar;

/// 0：未知，1：女，2：男
//@property (nonatomic, assign) NSInteger gender;

@property (nonatomic, assign) BOOL vip;

/// 主货币余额
@property (nonatomic, assign) NSInteger masterRemain;

/// 子货币余额
@property (nonatomic, assign) NSInteger subRemain;

/// 总余额
@property (nonatomic, assign) NSInteger totalRemain;

/// 自动订阅开启状态
@property (nonatomic, assign) BOOL auto_sub;

@property (nonatomic, assign) BOOL is_new; // 新用户

/// 用户信息本地存储路径
@property (nonatomic, class, readonly) NSString *userInfoPath;

@property (nonatomic, class, readonly) TL_UserInfoModel *shareInstance;

@property (nonatomic, class, readonly) NSDictionary *modelCustomPropertyMapper;

//"nickName": "string",
@property (nonatomic, copy, readonly) NSString *nickName;
// 性别
@property (nonatomic, copy, readonly) NSString *gender;
// 头像
@property (nonatomic, copy, readonly) NSString *headPic;
// 免费阅读时间
@property (nonatomic, copy, readonly) NSString *freeEndTime;
// 上次登录时间
@property (nonatomic, copy, readonly) NSString *lastTime;
// 累计充值金额
@property (nonatomic, copy, readonly) NSString *consumeTotalMoney;
// 首次充值时间
@property (nonatomic, copy, readonly) NSString *firstPayTime;
// 手机绑定时间
@property (nonatomic, copy, readonly) NSString *bindTime;
// 注册类型(1:邮箱,2谷歌)
@property (nonatomic, copy, readonly) NSString *userRegType;
// 注册邮箱
@property (nonatomic, copy, readonly) NSString *regEmail;
// 简介
@property (nonatomic, copy, readonly) NSString *desc;
// 用户类型(0:普通用户,1官方用户)
@property (nonatomic, copy, readonly) NSString *userType;
// 用户状态（0：正常、1可疑、2封禁
@property (nonatomic, copy, readonly) NSString *status;
// 可疑时间
@property (nonatomic, copy, readonly) NSString *doubtfulTime;
// 用户vip标识
@property (nonatomic, copy, readonly) NSNumber *userVip;
// vip等级
@property (nonatomic, copy, readonly) NSNumber *userVipLev;
// 使用时长登记
@property (nonatomic, copy, readonly) NSNumber *userTime;
// 支付次数
@property (nonatomic, copy, readonly) NSNumber *usersPayTimes;
// 点赞数
@property (nonatomic, copy, readonly) NSNumber *userPraise;
// 现有书币
@property (nonatomic, copy, readonly) NSNumber * coinNum;

@property (nonatomic, copy, readonly) NSNumber * bonusNum;

@property (nonatomic, copy, readonly) NSString * userCardId;
//vip 过期时间
@property (nonatomic, copy, readonly) NSString * validUntil;

@property (nonatomic, copy, readonly) TLSocialLoginModel * socialFBVO;
@property (nonatomic, copy, readonly) TLSocialLoginModel * socialAppleVO;
@property (nonatomic, copy, readonly) TLSocialLoginModel * socialEmailVO;
@property (nonatomic, copy, readonly) TLSocialLoginModel * socialGoogleVO;

@end

NS_ASSUME_NONNULL_END
